package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<SysRole> findAll();

    SysRole findById(int id);

    int countByName(String name);

    int insertOld(String name);

    int deleteByIdOld(int id);

    int updateStatus(int status,int id);
}
